﻿using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace MiniStock.Entities.Stock
{
    [ComplexType]
    [DataContract(IsReference = true)]
    public class ContactPerson : Person
    {
        [DataMember]
        public string Email { get; set; }
        [DataMember]
        public string Phone { get; set; }

        public override object Clone()
        {
            return new ContactPerson
            {
                FirstName = this.FirstName,
                LastName = this.LastName,
                Email = this.Email,
                Phone = this.Phone,
            };
        }
    }
}
